// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 2008-7-8 21:45:20
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   AbsEditMap.java

package com.creawor.imei.base;

import net.sf.hibernate.*;
import org.apache.struts.action.ActionForm;

// Referenced classes of package com.creawor.imei.base:
//            DBUtil

public abstract class AbsEditMap
{

    public AbsEditMap()
    {
    }

    public Session beginTransaction()
        throws HibernateException
    {
        session = DBUtil.currentSession();
        transaction = session.beginTransaction();
        return session;
    }

    public void endTransaction(boolean commit)
        throws HibernateException
    {
        if(commit)
            transaction.commit();
        else
            transaction.rollback();
        DBUtil.closeSession();
    }

    public void add(ActionForm actionform)
        throws HibernateException
    {
    }

    public void delete(ActionForm actionform)
        throws HibernateException
    {
    }

    public void update(ActionForm actionform)
        throws HibernateException
    {
    }

    public void query(ActionForm actionform)
        throws HibernateException
    {
    }

    public Session session;
    public Transaction transaction;
}